package com.chj.dfs.class04;

public class Code01_ComputeSum {

	public static int computeSum(int i, int sum) {
		if (i > 3) {
			return sum;
		}

		sum += i;
		return computeSum(i + 1, sum);
	}

	public static void main(String[] args) {
		int sum = 0;
		sum = computeSum(1, sum);
		System.out.println(sum);
	}
}
